import logging
from flask import current_app
from flask_migrate import Migrate,MigrateCommand
from flask_script import Manager
from info import create_app, db, models

"""配置数据库迁移"""
app = create_app("develop")
"""关联app 和　db"""
Migrate(app,db)
manager = Manager(app)
manager.add_command("db",MigrateCommand)

if __name__ == '__main__':

    manager.run()